﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="qxgl.aspx.cs" Inherits="Admin_qxgl" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
    <div style=" height:30px; width:100%; margin-bottom:50px">
    <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="~/main.aspx">桌面</asp:HyperLink>
    &gt;&gt;<asp:HyperLink ID="HyperLink5" runat="server" 
        NavigateUrl="~/Admin/qxgl/qxgl.aspx" style=" color:red">管理员信息管理</asp:HyperLink>
    </div>
    <div>
    <asp:GridView ID="GridView2" runat="server" 
        AutoGenerateColumns="False" BackColor="#DEBA84" BorderColor="#DEBA84" 
        BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2" 
        DataKeyNames="userName" DataSourceID="LinqDataSource1" 
        onrowdatabound="GridView2_RowDataBound" Width="100%">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:HyperLinkField DataNavigateUrlFields="userName" 
                DataNavigateUrlFormatString="~/Admin/qxgl/qxgl2.aspx?id={0}" DataTextField="tname" 
                HeaderText="姓名" />
            <asp:BoundField DataField="tphone" HeaderText="联系方式" SortExpression="tphone" />
            <asp:BoundField DataField="temail" HeaderText="邮箱" SortExpression="temail" />
            <asp:TemplateField HeaderText="多选">
                <ItemTemplate>
                    <asp:CheckBox ID="CheckBox1" runat="server" />
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:CheckBox ID="CheckBox1" runat="server" />
                </EditItemTemplate>
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
        <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
        <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
        <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#FFF1D4" />
        <SortedAscendingHeaderStyle BackColor="#B95C30" />
        <SortedDescendingCellStyle BackColor="#F1E5CE" />
        <SortedDescendingHeaderStyle BackColor="#93451F" />
    </asp:GridView>
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
        ContextTypeName="DataClassesDataContext" EntityTypeName="" 
        TableName="adminInformation">
    </asp:LinqDataSource>
    <table width="100%">
        <tr>
            <td style="text-align: right" width="10%">
                <asp:Label ID="Label1" runat="server" Text="姓名："></asp:Label>
            </td>
            <td width="20%">
                <asp:TextBox ID="TextBox1" runat="server" Width="95%" CssClass="tbox"></asp:TextBox>
            </td>
            <td style="text-align: left">
                <asp:Button ID="Button1" runat="server" Text="查询" onclick="Button1_Click" 
                    CssClass="btn01"  />
&nbsp;
                <asp:Button ID="Button2" runat="server" Text="添加管理员" onclick="Button2_Click" 
                    CssClass="btn01" />
            &nbsp;<asp:Button ID="Button3" runat="server" Text="删除管理员" onclick="Button3_Click" 
                    CssClass="btn01" />
            </td>
        </tr>
    </table>
    </div>
    </div>
</asp:Content>

